﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;

namespace OnlinePayment.Admin
{
    public partial class PreviewAnnoucement : System.Web.UI.Page
    {
        public string title;
        public string body;
        Announcement announcement;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!object.Equals(Session["PreviewAnnouncement"],null))
                {
                    announcement = (Announcement)Session["PreviewAnnouncement"];
                    title = announcement.Title;
                    body = announcement.Content;
                }
            }
        }
    }
}